// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2009-10-26 21:59:36


// Source File Name:   LDC.java

package com.vhly.classfile.bytecode;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

// Referenced classes of package com.vhly.classfile.bytecode:
//            BaseCode

public class LDC
        implements BaseCode {

    private int offset;
    private int index;

    public LDC() {
    }

    public String getName() {
        return "LDC";
    }

    public int getOp() {
        return 18;
    }

    public int length() {
        return 2;
    }

    public void read(DataInputStream din)
            throws IOException {
        index = din.read();
    }

    public void write(DataOutputStream dout)
            throws IOException {
        dout.write(18);
        dout.write(index);
    }

    public int getOffset() {
        return offset;
    }

    public String getDescrption() {
        String ret = "";
        return ret;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int indexB) {
        index = indexB;
    }

    public void setOffset(int off) {
        offset = off;
    }
}